fix pause issue