bug fixes in user ranking