Trivia plugin: correct ranks with the wrong type

Mainly to fix mistakes from commit 6d7a3cf3338e7ef61dc35571637a55e55725ea43