fix canvas example