Fix "Wrench icon" bug

Unbind the button function before bind a new function to it.