Fix problem with wrong file directory