Correct bug with multiple level dependencies