fixed issue with pause