fixed 64 bit issue