Fix wrong replace