fix file modification check