Fixed curly braces and collisions in CanvasWrapper.