Fixed the sample search