fix for local history plugin