bugfix canvas