fix log format variable