removelogging fix