bug with pause\resume