Fixed two small bugs in com:text.