fix pause,restore state