Fixes incorrect pipe order