fix error message for canvas