fix "file is not defined"