Fixed some stuff with directories