bugfix in directories