fix register bug in new ui