Fixed a bug where social groups were being looked up as security groups.