If you restore it again, it flies off screen again.
Your method is how I do it (modulo using M for move, rather than reaching for the cursor keys.)