fix error message about missing canvas