Fixed dependency loading when manually registering