fix clearing payment bug