fix mozilla bug 336551 further regression