Fix logical error in abstract type extension