Fixes this bug in a hacky way

See http://manage.dimagi.com/default.asp?132162#743033