fix bug: illegal constructor in FF v<=25.0