fix bind cloning. Closes #2216. Closes #2219