correct error in sample error