core: Ui#dup works properly