Fixed bug in logger class