Fix error trying to use a function as a value component.