Fixed bad bad bug with sed