Fix a small bug and remove some gems that we don't need.