Fixed vertical pipes

Fixes #5615