Dynamic collection

Bug: The collection is defined by the first msg. After that the collection does not change with the next msg.