fix uninitialized variables