bug fix in log module for enable/disable