Fixed app crash on 32bit systems