fixes a regression introduced by previous commit