fix pain text bug