fixed bug with duplicate depends=() and empty depends=()