You did the right thing. I see many people here doing exactly the opposite, buying at a high price and then selling in panic, at a loss.

Reinvesting is a good option. Use a Stop Loss to protect your capital.