fix a bug on Translate