fix bug about the pipe

last commit has use pipe of about 10, this commit make sure you know the
real pipe size.

[ticket: X]