fix cut & paste bug that caused constraining DOFs to be multiply added.