fix $destroy defer from $.defer to $q.defer