This fixes a strange bug I was the only one to encounter. bzr revid: fme@openerp.com-20110525090435-q1sz2rm7iydj0udl