fixed log window in a stupid way