fixed a bug in FF