fix it when app resumes from a killed state