Ore duplication bug fix

Fixes #4951
Merge pull request #4953 from Loganbacca/bayfix

Ore duplication bug fix