Fix bug in keyword list ranking