fix to work if canvas id is not #canvas