fix schema in pipe