Fixes some rubocop warnings