Fixed collection duplication

With this change collections are not duplicated anymore in some library views.

Tested on PW2 (5.6.1.0.2). It don't break cloud collections in any way.