Fix for older Firefox.