clean up refresh detection