fixed "not enough funds" for some amounts
Merge pull request #271 from heracek/20162

fixed "not enough funds" for some budget amounts