Fixed LoadDir() not passing debug param.