fix bug at sed command