Fixing the sed runs