Fix for Firefox, hopefully