Fix crashes on arm64