fix type in style of canvases