Not allowing Colonies and Mining Outposts to reclaim the ore used to make the ships could solve this problem.