sed substitution was not working