fix logs type-check