Fixes a logic error on the data collector.