Fix picking dependencies