bugfix in discovery