Fix error in second sed step