fixed pause button not working