error fixed on directories