Fix some bugs of display