repair clearCanvas() function