fixed bugs in sample41
Merge pull request #19 from 3skif9/master

fixed bugs in sample41