Fix logic error from previous commit.