Middleman init not working

I am getting this issue when I try to run middleman init from terminal

user$ middleman init middleman
/Users/user/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/dependency.rb:310:in to_specs': Could not find 'activesupport' (~> 3.2.6) - did find: [activesupport-5.0.5] (Gem::MissingSpecVersionError) Checked in 'GEM_PATH=/Users/user/.rvm/gems/ruby-2.3.1:/Users/user/.rvm/gems/ruby-2.3.1@global', execute gem envfor more information from /Users/user/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:1439:inblock in activate_dependencies’
from /Users/user/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:1428:in each' from /Users/user/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:1428:in activate_dependencies’
from /Users/user/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:1410:in activate' from /Users/user/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems.rb:300:in block in activate_bin_path’
from /Users/user/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems.rb:300:in synchronize' from /Users/user/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems.rb:300:in activate_bin_path’
from /Users/user/.rvm/gems/ruby-2.3.1/bin/middleman:23:in <main>' from /Users/user/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in eval’
from /Users/user/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `’
user$

its because of multiple middleman gem versions. after i remove old middleman gems. middleman init works normal.