Fix object uninitialized bug

Sorry for the bug. >_< This should fix it.