fixing bug with sed expression