Fixes problems with Firefox/Chrome integration