buttons-action.js fix