Fixed error with sed replacement