Fixed shuffling problem with angular.copy() to make deep copy