Fix variable name of log