Fix firefox compatibility