fixes theexception which appears when there is an empty rankingtable