canvas grid fix