fix the pipeline bug and the ugly error