fixed diversity index

This broke with previous update. Now fixed.