Fix drawing context.