Fix bugs using pauseTarget