fix a bug i introduced during some refactoring