rank bugfixes