Never mind. I find the second line cheated me. It should be $UC^iK_i=...=c^iK_i+c^i\displaystyle\sum_rc^rb_rK_i=c^iK_i+c^iK_i\displaystyle\sum_rc^rb_r=...$
Furthermore, in the proof followed in this example, there a few typos need to be corrected. But the final result is right. The BRST operator raises the ghost number by 1!