fix pause time bug