Fixed a duplication issue when destroying the production table