Fixed gem dependency issues