fixed 64 bit bug