Fix of proper place of directory now required to be written previously