Fix scope of loaded dependencies