fix text bug