fixed compatibility with FF