Revert chi sample number to the original code.