fixed bug where search samples was adding the last sample in the list to the sample name box