fix search for reversed name order