fixes some rare issues in output logging