Fixed rubocop errors