Fixed error on composing text related with Python 3.