Worked around some browser incompatibility issues