Fixed smart ranking bug