fixed \\r control code in terminal