fixed the bug that the module 'Dialog' conflicted