fixing case on directories