fixed search for single sequence