Thank you Ray. Surprisingly that worked. On other pages I have only 1 language variable which doesn't cause any problems. I tried to use this on the detail page, but no luck.
Also, I am using <sup>®</sup> in database fields. They are displayed as <sup>®</sup> on the page. Is that a MySQLi problem? It didn't happen before.