Fixed browser_type function.