Ouch! This should not happen.
1) Ships in overhaul are not able to move. In fact, they should never have been able to leave your base.
2) I think I remember a bugreport of a similar case, not sure however.
My recollection is that something (like a failed order?) can cause them to "break orbit" - they stay in the same place while the planet moves out from underneath them.
John