fixed bug on merge of joined records. nasty.