browser_type function fixed.