Partially fixed the refraction sampling