firefox compat fixes