bugfix about CanvasLayer (#277)