correct error on sample read