fix a bug in translate function call.
Signed-off-by: Daogang Tang <daogangtang@gmail.com>