fix #3890 (Unloaded units fly across the map)

thanks Kloot!