Hotfix: deploy and standard library distance function