fixing firefox compatibility issues