fixed bug in FF