fix existing file comparision