bugfix in directory scanner