made $addChangedDependency run more async to avoid potential issues