fixed pause bug