fix the "sed ... unterminated `s' command" error