fixing issue mentioned in #145 with payouts