fix part of #301
Merge pull request #327 from ZeusWPI/fix-to-pay-constrains

fix part of #301