fix bug in display tag