fix bugs: thread err, default dict err, dialog attr err