Fixed some rubocop errors.