Fixing warning issue: (superfluous) default object created from value