corrected an issue with sed