Fixed bug which preventend replacement of variables in translate