fixed a glitch in the indent function