fixed all bugs around PipelineRsc factory

fixed all bugs around PipelineRsc factory