Why are you using angular.copy here?