fixed sed substitutions