fix unpipe error