Output correct bin index