fixing index display errors