Fixed 64-bit bug for macOS