fix pull to refresh crash