fixes a bug when reading/getting series that used too much memory