fix offline histories