minor fix for changing to canvas context