Corrects the logger and config handlers