fixes #2455 hostgroup not saving