fixed flat text bug