Fix various Rubocop errors