[gcc4.7] fixed statecontroller;