Fix returning worst instead of best