Correct Directory export for errors