Canvasrenderer fix

fixed name in canvas state function.