fixed sed commands