more bug fixes in getrank