Fixed error in sed statements