fixes to target segment markup