fixed: getSubtype called at non object