Fix wrong replacment