Fix for sharing button variables in HTML.