Fix from Atte Peltomäki - atte.peltomaki@f-secure.com to correctly check