fix (word-wrap): correct word wrap calculation