fixed pause problem