removed bug from index.rb