fixed bug in get_best_karma