Fix error with java text