fix display to work properly when display width != 80 columns