fixed bug in wordwrap