some small fixes to wordwrap