fix in  how source depends are detected.