deep history working with errors if no substates