Fixing main directory files