fix bool return in pipeline