subtype bug fix