fix one display function bug