Fixed 64 bit errors.