fix display wrapping problem