fixed possible arm pointer bug