Bugfix for Firefox