Floating Menu element cannot be hidden/shown via script

Hey, I would like to create a script that will hide the Floating Menu item (it will be triggered when a specific condition is met) and while it works correctly, the item does not want to hide until I expand the "Visibility" category of the item in BTT.
Below is the content of the script:

tell application "BetterTouchTool"
	update_menu_item "629F2B95-C773-481B-851E-ECEC64FD3A78" json "{BTTMenuItemVisibleWhileActive: '0'}" with persist
	update_menu_item "629F2B95-C773-481B-851E-ECEC64FD3A78" json "{BTTMenuItemVisibleWhileInactive: '0'}" with persist
end tell

//edit: ahh I think it's not a bug. You accidentally put the 0 in quotes, but this must be a number, not a string:

tell application "BetterTouchTool"
	update_menu_item "629F2B95-C773-481B-851E-ECEC64FD3A78" json "{BTTMenuItemVisibleWhileActive: 0, BTTMenuItemVisibleWhileInactive: 0}" with persist
end tell

Note: updating multiple properties in one call is more performant than using separate calls

Omg my mistake. Thank you very much for your help.