fix for supporting 64-bit architecture