fixed issue with nested collection