RUBY-787 fix typo and variable name