Fixed some Rubocop warnings.