I've found a way to """"fix""" it, save the game, and restart it, the money you spendt won't be restored, but the ores are going to be back to the normal