Another silly logic error.