fixed SAMIterator not returning the last records in container