fixed 64 bit compile problem