Yeah, the spring won't really press into the groove in the pin if the leg is under the pin.
Glad you found it.
I've never had an issue with pins walking but my youngest son did on one of his rifles. We changed out pins. The original just had a very, very shallow groove in the pin. No issues with it since the new pin was installed.
Funny (not haha funny) things happen sometimes.