Fix the bug not to get Ui