fixed mCanvas issue