bug fix text type