Fixed the display dialog