Fixed directory reading