Fix for broken replace_or_add in line cookbook.