fix bug shown graphics