Fix for buttons.js