bugfix in sample