fix bug of default text display logic