Fixed the returning of empty values when the returned type is a structure