fixed a couple errors with sed