fixed err in logger