Fix for Firefox error