Fixed index.get_max and get_min bugs.