minor fix for canvas