Trying to fix the state change.
Fixed syntax error.