Chart builder state deserialization. Some session bug fixing.