Imports controller: bug fix in find_sample()