Activity history files header gets corrupted on history files that were purged