fix bug with Collection.onAdd