Fixed a problem with composite instance records

They were not correctly persisted