Indentation wrong when creating a new line

When creating a new line using the return key, this line is indented too much, even though autoformat corrects this error when used.