Fixed some minor problems with path variable in translate method