Fixing the canvas context selection