adapt to ResizeCanvas changes
cleanup