Fixed a crash that would happen 100% of the time on bootup, once certain conditions were triggered