bug in text rendering