32 bit compatibility fix