Fix buttons not working for Lua-triggered formspecs