fix layout history savings