double payment fixs and else if not closed