maybe globals don't work with canvas?