fix logging error.