fix crash with uninitialized value