fix sharedInline bug