Fix wrong color output for multiple lines.