fixed dependency check