Fix $icon argument for custom button callbacks.