Fix translation bug in variable interpolation