Fixing pull to refresh bugs