Changing the order of operations in the Collection constructor to properly set the local collection variable