Fix warning error: Creating default object from empty value