Fix error in logger