fix gem dependencies bug