fixed a bug in the feed dependency-chain ordering