Fixed crash in Pull to refresh