fixed ranking bug