Fix in index initialization