fix compareFiles