fix return in multi-level pipeline