fixing dir call