small fix for state operations