I had that problem too until I realized that I was trying to stand in too low a gear. The gear needs to be really tough for you to feel stable when you are not used to standing on the bike. It's easiest to learn how to do it on the trainer first to learn a smooth standing pedal stroke. Then take it outside.