Fixed bug in dependency_check_logic.