log module bug fix for enabled or not