Repair

Game engine repair function now does what it should.