bug fixes for browser