fixed 64-bit pointer warning