Fix for issue #1312

..._to.

However, to make it work correctly it should be button_to_function.