Fix inconsistency in object construction