Fix indent detection algorighm