fix stopping of refresh