fix sed issues