Creating default object from empty value fix