small fix to ui-router state machine