Append intermediate products.
Fixed a case where sometimes fail.
Fixed exception to occur in cases when the data is nil.