fixes text wrapping in some situations