Fix the infinite loop introduced by previous commit.