Canvas bugfix