Stopping infinite refresh