V0.2.0: fixed two bugs with buff logic.