Fix object uninitialized bug

Sorry for the bug. :weary: This should fix it. :dancers: :coffee: :dancers: