fixing text rendering