fix logic error

oops.