Delete call $apply in promise $modalInstance