Fix rank scores

Fixes #273