Fix for NullReferenceException while running on Dedicated Server