Avoid crash when terminal width is not available