fix 32 bit operations