fix bug: autoenable logger