Fix text overflow bugs.