bug fix with sed -i