Resolving indentation errors and corresponding regression