Fixed a dependence order bug