fixed several autoindent issues