fix num_of_type