[BUGFIX] Define precedence of states in workspace module