Fix boolean logic error (whoops)