Fix a partial-read bug that was causing false negatives