Fix logic error in prev commit.