Kubelet trying to get to docker.sock instead of conatinerd.sock

Cluster information:

Kubernetes version: latest
Installation method: kubeadm
Host OS: debian9
CRI and version: containerd

Kubelet fails when starting and after inspecting the logs using journalctl -xeu kubelet i see that it tries to connect to the docker.sock socket instead of containerd.sock. I tried running kubeadm --config=config.yaml using this config file

apiVersion: kubeadm.k8s.io/v1beta1
kind: InitConfiguration
nodeRegistration:
        criSocket: "unix:///var/run/crio/crio.sock"

I have also tried tried running the kubeadm with the --cri-socket argument, also doesn’t work.
any other ideas are appreciated and thanks