bug fixed for text rendering.