Fix bug in CompositeRecordReader