Fix sample
Fix for #839