fixed crash on 32 bit OS (XP or 7)