Fix #311 autoindent problem