MiniGhost: Fixing Minor Bug in dependency calculation