fix pause problem