active_space uses the macOS internal space number, you probably want translated_active_space which corresponds to the number you see
active_space uses the macOS internal space number, you probably want translated_active_space which corresponds to the number you see