fix bug in sample