Starter problem 1990 TRX300FW

A few months ago the starter stopped working again. I don’t ride it very much so I let it go and kicked started it. I have replaced the brushes several times so I finally got a new set and replaced them. Put the starter back on and it just spins but doesn’t turn the engine. It sounds just like an auto starter with a defective Bendix. I disassembled the gears from the starter and found that the large ring gear inside free wheels in the direction the starter turns it. It will not turn in the opposite direction. It first glance, it looks like the starter is turning in the wrong direction but don’t think that is possible. Does the ring gear have dogs that pop out to start then retract after starting? It was working fine when the starter quit. Thanks.