fixed pull to refresh mode bug