fix history logging