fixing index for highest bin