fix the regression about transform engine context reinitializtion