Fix tech tree when debug = false.