fix create_pipe