fixed crashes when app resumes in any fragment from a long sleep.
merged