Fix wrong replacement