bugfix for "Add target"