Fixed rubocop issues.