fix sed variable issue