fix StateDraw