$destroy fix for deferred