fixed search end of header