solve the display problem