Fix pause not ending problem