Fixed a bug that prevented collections to work