fix bugs: wrong file reference