fix crash after resume from killed