I solved my problem. It was due to an expression set up which has the value "time1.outTime=19" which caused the time slider to stuck at frame 19 and therefore the frame did not change in the slider whenever I selected a frame. Now I have deleted this from Window > Animation > Expression Editor > Select Filter > By expression name All working now.