fixing state update issue