Unable to use canvas