fix errors in using angular-translate