Fix bug in text rendering if icon is set