Fixed a problem when translate.json was loaded after template.html