fix log errpr