Expected an array-like object, but found a Variable

I understand your point.
Will rethink it