fix cost est. for instance, fixes: #359
Merge pull request #360 from martinpovolny/cost-rhevm2

fix cost est. for instance in some cases (rhevm)