[Samples] Fix issue #360