fix reassing cases in FireFox. This was clearly just wrong and only work...

...ed in Chrome out of luck

Fixes: http://manage.dimagi.com/default.asp?43590