fix build error for uninitialized variables