Fixing rubocop violations