fix exception in FF