Added check to heuristics

might deadlock when only using one heuristic at a time...