Fix rankings bug and small refactoring of task show.