fix re.search call