Fixed a bug in merge "cross join"