Fixing rubocop syntax issues