Fix variable name in log removal