fixed bug with auto-indent