fixed a regression introduced by a previous commit