Fixed bug in samples.