fix a bug on ff.25 and win.8.1