Fix sed can't read errors