Fixed dependency check