fixed a bug on $app.trans