fix pipeline bugs