fixed newline when tb=True