Update dep only if the dep is resolved