BUG: fix button instantiation