Bugfixing

- Fixed some bug a GetRPForNextRank() and GetRPForPreviousRank()