minor fixes from RubyMine code inspections