Fixed a small bug that caused THoT to crash