Fix the issue of canvas