Fix exec and hash based historyState