fix 64 bit compile bug