Fix some weird issues with pull to refresh library