fix regression introduced by previous commit