Fix deep state instance safety. [#12]