fixing dir changing