Revised the canvas display problem.