Fixed logger error