fix text controller