fixes payment bug