UIState fix

Clearing pointer in deserialize to ensure that it is cleared after load