fix up pause logic