fix improperly set group ids in case list

http://manage.dimagi.com/default.asp?101997