Fixed bugs in dataset ranking