Fixed a few things for rubocop.