fixes problem with hardcoded canvas element id