display: fix bug when draw nothing