fix a bug when all dependencies are loaded