fix sample errors
Merge pull request #128 from tzik/sample_fix

fix sample errors