fix bug with word wrap