fix type-classes with multiple methods