Fix a logic error I introduced in the previous commit