Bugfixes to ADMM and Bethe-ADMM code