Fixed bug with ranking up