Fixed logger error at startup.