Fixed logging handler issue.