fix error : "Uncaught TypeError: Cannot read property 'button'
of undefined"