fix wid_to_class