fix code to merge properly a sub fixture record with its parent record