fix header parsing regexp