fix errors with multiple lines + stacktrace