fixed a bug on redeem