change Gemfile and fix bug