Fix timer error when the user pauses