Solved early issue with angular.copy