Replace error redirector at the righ positions