[fix] u if for undo, not for update