Fix translate method