Correctly set resource defaults inside definition