fix exection when resume state