fixed array handling in toggles