Fixed another bug with ranking