Changing state to get rid of top state error refreshing problem.