Fixed bug in WindowLogHandler.