fixed bug with canvas ids