fix problem with not working on multiple domains

addresses http://manage.dimagi.com/default.asp?138152#784808