Fix bugs

1. ROUND_SAMPLES: stage 1
2. sampleFunda: stage 2