fix the unpaid bug