fixed pipeline pointer bug