fixed 64bit issue