fix read sample