more bug fixes in Logger