Fixes from the previous commit for Ruby.