display: fix display mode bug