Fixed logger access bug