bugfix in canvas