Mistake in 'sed' replacement