fix logging pid