Fix bugs when click some button that trigger dict