fix bug with state transition rendering