fix dependency resolution bug