fixed IndexError bug when adding read to readcontainer