fix payment bug