fixed error in logger