fixed for non-chrome-environment