modified sed command bug