Fixed acorn head.state writing