[FIX] Replacing _getMaxIndex by getMaxIndex in some more locations.