Fixed reparenting issues after deletion with the parameters.