Fixed bugs of undo panel and a click action error.