fixed a regression introduced in the last commit.