fix a bug for changing elaspe when paused