fixed text layout problems.