Fix merge.ffdf

I've noticed this bug when merging data bases.