Fix: use Array#select not to delete the dependencies from specs