# User is not able to vote. Errors in the console

Let's consider the following scenario:&#x20;

When a user tries to vote as a guest (not registered) user, there is the following error in the console:

`Uncaught ReferenceError: Competition is not defined onclick https://yoursite.com/contests/south-vacation/67-my-entry:1`

However, the user can vote as a registered user. Why so?

**This error occurs because of using 3rd party extension which optimizes scripts.**&#x20;

NorrCompetition component loads minified script and when 3rd party extension tries to compress a file which is already compressed, it leads to potential and real issues.

If your website has JCH Optimize extension which is configured and running, then please include **competition.min.js** file to excludes list as it does not work when combined by JCH optimize.&#x20;

The better approach for stable perfomance of NorrCompetition component is to use **"Excluding files from a particular extension"** and exclude all **"com\_competition"** Javascript files.

See JCH Optimize documentation: [Chapter 5. Optimizing Your Site With JCH Optimize](https://www.jch-optimize.net/documentation/minify-css-and-javascript.html#idm46741194766144) (Procedure 5.1. Excluding files and inline scripts)
