fix incomplete sed replacement