fix getSubType for primary