fixed pipeline bugs