Fixed bug of sample