fix bug in find the best C