Fix globalCompositeOperation not properly assigned.