fixed bug about handling default logger