Fixes ranking bug