fix variable interpolation in log