Bugfix for firefox