fixed issue causing text to render incorrectly