fix cost est. for instance, fixes: #359