Fix crash for 64bit