Cleaning up directory mistakes