fixed bug in pull to refresh