fix rest in history