fix a bug i introduced in another bug fix