fix typo and extra line in base.rb