Fixed some serious bugs with ship editing.