Fixed caption bug.

Before, if you input a language file, it would change the caption setup
in the whole page. I added scope to fix the issue.