fixing the jittery transition on the 2nd click