fix bug when server/service group has id 0