[Sed] logic fail