fixed bug with model deserialization destroyed model references