Related cases fix

http://manage.dimagi.com/default.asp?149765#838590