Fix bug in translate method