Fixed some rubocop errors