bug with empty groups or no groups specified