Fixes a gem version problem with rails.