Fix bad implementation of refresh control