Fixed a bug with the wxData dictionary getting overwritten after the state as loaded.