fix the memory error in arm64