Fixed a bug in ranking

It would not work as intended when someone sent in a number that was not a float