Pipeline state bug fix,#260