fix leg deployments setup