look at your bug animations. look at what you're doing to the bugs immediately after spawning them.
the only ones that are spawning differently (right side up, until you fix it) are the ones that are already placed and have their angle set (and aren't being affected by the command immediately after spawn).
Trying to be helpful here, it seems you're in over your head a bit. I would suggest doing some of the beginner tutorials, at least beginner's guide to C2 (AKA ghost shooter), and the platform one, till you get a better feel for what all is going on.