fix for broken button variable