Fixed duplicate payments

Issue #44