Fix automation engine to honor the data type.