updateDependencies was in wrong place, needed to be before we update the loader, and before we return value.