fix the offset for 32 bit system
fix the offset for 32bit