Fixed subtle bug in function pipelining.