fixed bug in restoring context for aarch64