Repair wrong directory structure