Fix uninitialized variables. Doesn't fix the bugs, though.