fixed bug with header + regex