fixed space after index issue