fix type with more than 1 declaration and enum.