nasty workaround to enable Safari extension to work