Fix a stupid logic error.