fixing sed flag