Fixed loading a directory