fix errors in index spacing