port to 64 bit
fix crash on iPad