fix pring log bug