bug fixes for non-chrome browsers