fix some warnings for uninitialized variables