bugfix for directory loads in debug mdoe