os type judge bug fix