Weichen,
this was a bug on the snapd package until version 2.61.2:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/2057491
snapd is now updated to 2.61.3 and the issue is fixed. It's unrelated to the changes you made.
I also tried to reproduce it in my environment with a fresh installation and the issue didn't manifest, so I can confirm it's fixed.
Weichen,
this was a bug on the snapd package until version 2.61.2:
https:/ /bugs.launchpad .net/ubuntu/ +source/ snapd/+ bug/2057491
snapd is now updated to 2.61.3 and the issue is fixed. It's unrelated to the changes you made.
I also tried to reproduce it in my environment with a fresh installation and the issue didn't manifest, so I can confirm it's fixed.