fixed bug in getGroups & getServers