Fix bug in the sed program introduced in previous commit.