fix main text bug