Fixed some logger bugs