fix samples, thanks to masayuki038