Fix rubocop's warnings.