firefox compatibility fix