fix nocanvas mode