bttActiveSpaceIndex condition not working and broke system active corner

unless you have created that variable manually (or some script), this does not exist. See this for the correct names