stupid logic error

hopefully we have some unit tests...