fixing some wrapping issues when the window got small