Correct flaw in refresh check